import Loadable from 'react-loadable';
import Loading from '@/components/Loading/loading.js';

/* 登录 */
const Login = Loadable({
  loader: () => import('@/views/Login'),
  loading: Loading
});
/* 布局 */
const Layout = Loadable({
  loader: () => import('@/views/Layout'),
  loading: Loading
});
/* 首页 */
const Home = Loadable({
  loader: () => import('@/views/Home'),
  loading: Loading
});

const components = {
  Login,
  Layout,
  Home
}

export default components